#include "ObjAxis3ImpGL.h"
#include "ObjFactoryImpGL.h"


ObjAxis3ImpGL::ObjAxis3ImpGL(Point3f origin, float size, bool bShow)
{
	m_origin = origin;
	m_axisX.reset(ObjFactoryImpGL::GetInstance()->CreateLine(origin, origin.AddX(size), 0xAAff0000));
	m_axisY.reset(ObjFactoryImpGL::GetInstance()->CreateLine(origin, origin.AddY(size), 0xAA00ff00));
	m_axisZ.reset(ObjFactoryImpGL::GetInstance()->CreateLine(origin, origin.AddZ(size), 0xAAffff00));
}


ObjAxis3ImpGL::~ObjAxis3ImpGL(void)
{
}


void ObjAxis3ImpGL::Rotate(float angle, float axisX, float axisY, float axisZ)
{
}

void ObjAxis3ImpGL::Scale(float scaleX, float scaleY, float scaleZ)
{
}

void ObjAxis3ImpGL::Translate(float transX, float transY, float transZ)
{
}

void ObjAxis3ImpGL::Update()
{
}

void ObjAxis3ImpGL::Paint()
{
	if(m_bShow)
	{
		m_axisX->Paint();
		m_axisY->Paint();
		m_axisZ->Paint();
	}
}